package com.shelpe.services.scheduler.mongorepository;

import java.util.Date;
import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;
import com.shelpe.services.scheduler.po.WordInsightMetric;


public interface KeywordMetricRepository extends PagingAndSortingRepository<WordInsightMetric, String> {

	
	List<WordInsightMetric> findByWordAndScopeEndTime(String word, Date endTime);
	
	int countByWordAndScopeEndTime(String word, Date endTime);
	
	int countByScopeEndTime(Date endTime);
	
	void deleteByScopeEndTime(Date endTime);
	
}
